package com.hospes.rmes;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.hospes.rmes.asynctasks.SplashScreenAsyncTask;
import com.hospes.rmes.constants.ConstMain;

/**
 * Created by IntelliJ IDEA.
 * User: Andrew Khloponin
 * Date: 17.06.11
 */
public class SplashScreenActivity extends Activity {

	private ProgressBar pbLoading;
	private TextView tvLoading;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
		Log.i(ConstMain.LOG_TAG, "Start " + this.getClass().getName().toString());
        setContentView(R.layout.view_splashscreen);

		tvLoading = (TextView) findViewById(R.id.tv_splashscreen_loading);
		pbLoading = (ProgressBar) findViewById(R.id.pb_splashscreen_loading);

		SplashScreenAsyncTask loading = new SplashScreenAsyncTask(tvLoading, pbLoading, this);
		loading.execute();
    }
}
